<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class TRealdataSoilcondth extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('t_realdata_SoilCondTH', function (Blueprint $table) {
             $table->engine = 'MEMORY';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->datetime('rd_updatetime')->nullable(false)->comment('');
			$table->unsignedInteger('pdi_index')->nullable(false)->default(0)->comment('');
			$table->float('rd_Soiltemp1', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soiltemp2', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soiltemp3', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soiltemp4', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soiltemp5', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soiltemp6', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soiltemp7', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soiltemp8', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soiltemp9', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soiltemp10', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soilhumi1', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soilhumi2', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soilhumi3', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soilhumi4', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soilhumi5', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soilhumi6', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soilhumi7', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soilhumi8', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soilhumi9', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_Soilhumi10', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_SoilCond1', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_SoilCond2', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_SoilCond3', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_SoilCond4', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_SoilCond5', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_SoilCond6', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_SoilCond7', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_SoilCond8', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_SoilCond9', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_SoilCond10', 9, 2)->nullable()->default(0)->comment('');
			$table->float('rd_SoilTH_num', 9, 2)->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp1hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp2hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp3hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp4hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp5hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp6hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp7hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp8hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp9hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp10hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp1lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp2lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp3lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp4lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp5lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp6lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp7lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp8lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp9lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soiltemp10lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi1hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi2hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi3hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi4hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi5hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi6hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi7hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi8hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi9hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi10hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi1lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi2lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi3lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi4lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi5lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi6lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi7lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi8lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi9lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_Soilhumi10lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond1hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond2hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond3hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond4hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond5hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond6hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond7hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond8hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond9hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond10hwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond1lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond2lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond3lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond4lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond5lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond6lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond7lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond8lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond9lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_SoilCond10lwarn')->nullable()->default(0)->comment('');
			$table->boolean('rd_envihumi1consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_envihumi2consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_envihumi3consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_envihumi4consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_envihumi5consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_envihumi6consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_envihumi7consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_envihumi8consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_envihumi9consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_envihumi10consta')->nullable()->default(0)->comment('');
			$table->boolean('rd_NetCom')->nullable()->default(0)->comment('');
			$table->unique('pdi_index', 'pdi_index');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('t_realdata_SoilCondTH');
    }
}
